package com.liao.seckill.dao;

import com.liao.seckill.pojo.TbMiaoshaOrder;
import com.liao.seckill.vo.ResOrderDetail;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface MiaoShaOrderDao extends CrudRepository<TbMiaoshaOrder,Integer> {

    TbMiaoshaOrder findByUserIdAndGoodsId(Integer userId,Integer GoodsId);

    TbMiaoshaOrder findByOrderId(String orderId);
}
